<h2><?php echo __('Order'); ?></h2>
<table class="table-striped table-bordered table-condensed table-hover">
    <tr>
        <td><?php echo __('Id'); ?></td>
        <td><?php echo h($order['Order']['id']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('First Name'); ?></td>
        <td><?php echo h($order['Order']['first_name']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Last Name'); ?></td>
        <td><?php echo h($order['Order']['last_name']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Email'); ?></td>
        <td><?php echo h($order['Order']['email']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Phone'); ?></td>
        <td><?php echo h($order['Order']['phone']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Billing Address'); ?></td>
        <td><?php echo h($order['Order']['billing_address']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Billing Address2'); ?></td>
        <td><?php echo h($order['Order']['billing_address2']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Billing City'); ?></td>
        <td><?php echo h($order['Order']['billing_city']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Billing Zip'); ?></td>
        <td><?php echo h($order['Order']['billing_zip']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Billing State'); ?></td>
        <td><?php echo h($order['Order']['billing_state']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Billing Country'); ?></td>
        <td><?php echo h($order['Order']['billing_country']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Shipping Address'); ?></td>
        <td><?php echo h($order['Order']['shipping_address']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Shipping Address2'); ?></td>
        <td><?php echo h($order['Order']['shipping_address2']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Shipping City'); ?></td>
        <td><?php echo h($order['Order']['shipping_city']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Shipping Zip'); ?></td>
        <td><?php echo h($order['Order']['shipping_zip']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Shipping State'); ?></td>
        <td><?php echo h($order['Order']['shipping_state']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Shipping Country'); ?></td>
        <td><?php echo h($order['Order']['shipping_country']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Weight'); ?></td>
        <td><?php echo h($order['Order']['weight']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Order Item Count'); ?></td>
        <td><?php echo h($order['Order']['order_item_count']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Subtotal'); ?></td>
        <td><?php echo h($order['Order']['subtotal']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Tax'); ?></td>
        <td><?php echo h($order['Order']['tax']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Shipping'); ?></td>
        <td><?php echo h($order['Order']['shipping']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Total'); ?></td>
        <td><?php echo h($order['Order']['total']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Order Type'); ?></td>
        <td><?php echo h($order['Order']['order_type']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Authorization'); ?></td>
        <td><?php echo h($order['Order']['authorization']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Transaction'); ?></td>
        <td><?php echo h($order['Order']['transaction']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Status'); ?></td>
        <td><?php echo h($order['Order']['status']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Ip Address'); ?></td>
        <td><?php echo h($order['Order']['ip_address']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Created'); ?></td>
        <td><?php echo h($order['Order']['created']); ?></td>
    </tr>
    <tr>
        <td><?php echo __('Modified'); ?></td>
        <td><?php echo h($order['Order']['modified']); ?></td>
    </tr>
</table>
<br />
<h3><?php echo __('Actions'); ?></h3>
<?php echo $this->Html->link(__('Edit Order'), array('action' => 'edit', $order['Order']['id']), array('class' => 'btn btn-default')); ?>
<br />
<br />
<?php echo $this->Form->postLink(__('Delete Order'), array('action' => 'delete', $order['Order']['id']), array('class' => 'btn btn-default btn-danger'), __('Are you sure you want to delete # %s?', $order['Order']['id'])); ?>
<br />
<br />
<h3><?php echo __('Related Order Items'); ?></h3>
<?php if (!empty($order['OrderItem'])): ?>
    <table class="table-striped table-bordered table-condensed table-hover">
        <tr>
            <th><?php echo __('Id'); ?></th>
            <th><?php echo __('Order Id'); ?></th>
            <th><?php echo __('Product Id'); ?></th>
            <th><?php echo __('Name'); ?></th>
            <th><?php echo __('Quantity'); ?></th>
            <th><?php echo __('Weight'); ?></th>
            <th><?php echo __('Price'); ?></th>
            <th><?php echo __('Subtotal'); ?></th>
            <th><?php echo __('Created'); ?></th>
            <th><?php echo __('Modified'); ?></th>
            <th><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($order['OrderItem'] as $orderItem): ?>
            <tr>
                <td><?php echo $orderItem['id']; ?></td>
                <td><?php echo $orderItem['order_id']; ?></td>
                <td><?php echo $orderItem['product_id']; ?></td>
                <td><?php echo $orderItem['name']; ?></td>
                <td><?php echo $orderItem['quantity']; ?></td>
                <td><?php echo $orderItem['weight']; ?></td>
                <td><?php echo $orderItem['price']; ?></td>
                <td><?php echo $orderItem['subtotal']; ?></td>
                <td><?php echo $orderItem['created']; ?></td>
                <td><?php echo $orderItem['modified']; ?></td>
                <td>
                    <?php echo $this->Html->link(__('View'), array('controller' => 'order_items', 'action' => 'view', $orderItem['id']), array('class' => 'btn btn-default btn-xs')); ?>
                    <?php echo $this->Html->link(__('Edit'), array('controller' => 'order_items', 'action' => 'edit', $orderItem['id']), array('class' => 'btn btn-default btn-xs')); ?>
                    <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'order_items', 'action' => 'delete', $orderItem['id']), array('class' => 'btn btn-danger btn-xs'), __('Are you sure you want to delete # %s?', $orderItem['id'])); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
<?php endif; ?>